Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sikt/sds-core

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sikt/sds-core

## Consume

  • 1.0.1
  • npm
  • Socket score

Version published
Weekly downloads
2.5K
decreased by-36.04%
Maintainers
2
Weekly downloads
 
Created
Source

@sikt/sds-core

Consume

npm i -s @sikt/sds-core

Stylesheet

@import url("@sikt/sds-core");

React

import { PrimaryButton } from "@sikt/sds-button";
import "@sikt/sds-core/dist/index.css";

<PrimaryButton>Hello, World!</PrimaryButton>;

Design Tokens

Created using Style Dictionary and exported as CSS & JavaScript variables. Colors are available in light and dark scheme.
Do not edit these directly in the /core/dist output directory but rather in the /core/tokens source directory.
Note That Style Dictionary tokens follow a CTI (Category/Type/Item) naming pattern that may affect their outcome by what transforms are applied.
Note There is currently a bug in Figma that translates HSL to incorrect HEX color values. If you use the same name token you will get the correct HEX color value.

Tips

  • Relative size tokens (--sds-size-text-<size>) should be used on user font size setting scalable properties like font-size, line-height, etc. These are calculated from the root font-size so that for example 16px is the same as calc(16 * 1rem / 16).
  • Custom media queries are transformed to valid CSS during build step and need to be imported into the PostCSS file that uses them.

Consume

Stylesheet
@import url("@sikt/sds-core");

.prefix-custom-block__element--blue {
  color: var(--sds-color-primary-dark);
}
React
import * as tokens from "@sikt/sds-core/dist/tokens/js/tokens";

<Button style={{ color: tokens.default.color.primary.dark.value }}>
  Hello, World!
</Button>;

Color Scheme

Color scheme is default light and can be changed by the users color scheme setting. If a web page or parts of a web page should be lock to one mode it can be done with the attribute data-color-scheme="<scheme>", remember to set a background if used on a partial pages as the root background otherwise will affect your partial page.

FAQs

Package last updated on 28 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc